﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RunZ
{
    public class RZSingleton<T> where T : class, new()
    {
        public static T SP
        {
            get {
                return SingleNested._instance;
            }
        }

        protected RZSingleton () { }

        class SingleNested
        {
            internal static readonly T _instance = new T ();

            static SingleNested () { }
        }
    }
}
